package com.solution.admin.product.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.product.entity.ProductInvisiableEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 商品可见性DAO接口
 * @author solin
 * @date 2017-09-20 15:31:21
 */
public interface ProductInvisiableDao extends BaseDao<ProductInvisiableEntity> {
	
	/**
	 * 保存商品可见性
	 * @param ebProductInvisiableEntity
	 * @return
	 * @author solin
	 * @date 2017-09-20 15:31:21
	 */
	public long saveEbProductInvisiable(ProductInvisiableEntity ebProductInvisiableEntity);

	/**
	 * 分页查询商品可见性信息
	 * @param pageParam 分页对象
	 * @param ebProductInvisiable 分页参数
	 * @return PageBean 分页参数及数据
	 * @author solin
	 * @date 2017-09-20 15:31:21
	 */
	public PageBean listEbProductInvisiablePage(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新商品可见性
	 * @param ebProductInvisiableEntity
	 * @return
	 * @author solin
	 * @date 2017-09-20 15:31:21
	 */
	public int updateEbProductInvisiable(ProductInvisiableEntity ebProductInvisiableEntity);


	/**
	 * 删除商品可见性
	 * @param id
	 * @return
	 * @author solin
	 * @date 2017-09-20 15:31:21
	 */
	public int deleteEbProductInvisiableById(Long id);
	
	/**
	 * 根据商品ID删除商品可见性
	 * @param id
	 * @return
	 * @author solin
	 * @date 2017-09-20 15:31:21
	 */
	public int deleteEbProductInvisiableByProductId(Long productId);
	
	/**
	 * 根据商品可见性类型获取商品可见性
	 * @param param
	 * @return
	 * @author solin
	 * @date 2017-09-20 15:31:21
	 */
	public List<ProductInvisiableEntity> listEbProductInvisiable( Map<String, Object> param);
}
